<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title> 自动回复</title>
    <link rel="stylesheet" href="${base}/res/manage/css/common.css">
    <link rel="stylesheet" href="${base}/res/manage/css/ec.css">
    <link rel="stylesheet" href="${base}/res/manage/css/list.css">
    <script type="text/javascript" src="${base}/res/plugin/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="${base}/res/plugin/validator/jquery.validate.min.js"></script>
    <script type="text/javascript" src="${base}/res/admin/js/common.js"></script>
    <script type="text/javascript" src="${base}/res/admin/js/list.js"></script>
    <script type="text/javascript" src="${base}/res/admin/js/scrollView.js"></script>
    <script type="text/javascript" src="${base}/res/admin/js/initWidth.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
        [@flash_message /]
        });
    </script>
</head>
<body>
<div class="tab set">
    <h3>[#--<a href="javascript:;">首页</a>--]<a href="javascript:;">微信管理</a><a href="list.jhtml">> 消息自动回复管理</a></h3>
    <form id="listForm" action="list.jhtml" method="get">
        <div class="txte">
            <p class="txtl" ><a href="${base}/admin/wxReplay/add.jhtml" class="ared "> + 添加消息自动回复</a></p>
            <p class="txtp">
                <input type="text" name="keyword" id="keyword" value="${wxReplay.keyword}" placeholder="关键字"
                       class="txt">
                <input type="submit" value="搜索" class="txt red">
            </p>
        </div>
        <div class="tablist">
            <table cellpadding="0" cellspacing="0" class="scrollTable">
                <tr>
                    <th>关键字</th>
                    <th>消息类型</th>
                    <th>是否可用</th>
                    <th>创建时间</th>
                    <th class="icon">操作</th>
                </tr>
            [#list page.list as wxReplay]
                <tr>
                    <td class="center">
                    ${wxReplay.keyword}
                    </td>
                    <td class="center">
                    ${stdCodeName("WX_REPLAY_MSG_TYPE",wxReplay.msgType)}
                    </td>
                    <td class="center">
                    ${stdCodeName("IS_ENABLED",wxReplay.isEnabled?string(1,0))}
                    </td>
                    <td class="center">
                        <span title="${wxReplay.createDate?string("yyyy-MM-dd")}">${wxReplay.createDate?string("yyyy-MM-dd")}</span>
                    </td>
                    <td class="icon">
                        <div>
                            <a class="[#if wxReplay.isEnabled]disabled[#else ]launch[/#if]"
                               title="[#if wxReplay.isEnabled]禁用[#else ]启用[/#if]"
                               href="disabled.jhtml?id=${wxReplay.id}&isEnabled=${wxReplay.isEnabled?string(1,0)}"></a>
                            <a class="delete" title="删除" type="delOne" idName="id" idVal="${wxReplay.id}"
                               href="javascript:void(0)"></a>
                            <a class="edit" title="编辑" href="edit.jhtml?id=${wxReplay.id}"></a>
                        </div>
                    </td>
                </tr>
            [/#list]
            </table>
        [@pagination pageNumber = page.pageNumber totalPages = page.pages]
            [#include "/admin/include/pagination.ftl"]
        [/@pagination]
        </div>
    </form>
</div>
</body>
</html>